package list.p4_doublylist;

public class Test {
    private static void test1() {
        DoublyLinkedListWithoutHead list = new DoublyLinkedListWithoutHead();
        list.addFirst(4);
        list.addLast(1);
        list.addLast(1);
        list.addLast(1);
        list.addLast(2);
        list.addFirst(3);
        list.addFirst(3);
        list.addLast(2);
        list.display();
        list.remove(1);
        list.removeAllKey(3);
        list.display();
        System.out.println(list.size());
        list.clear();
        System.out.println(list.size());
    }
    public static void main(String[] args) {
        test1();
    }
}
